<?php

	class app_collocate_goods extends app
	{
		var $ver = 1.1;
		var $name = '搭配商品';
		var $author = 'dev@shopex.cn';
		var $desc='搭配商品';
		var $website = 'http://www.shopex.cn/';
		
		function ctl_mapper(){
			return array(
				'shop:cart:addGoodsToCart'=>'cart_ctl:addGoodsToCart',
				'shop:cart:index'=>'cart_ctl:index',
				'shop:cart:checkout'=>'cart_ctl:checkout',
				'shop:cart:removeCart'=>'cart_ctl:removeCart',
				'shop:cart:updateCart'=>'cart_ctl:updateCart',
				'shop:order:create'=>'order_ctl:create'
			);
		}

		function output_modifiers()
		{
			return array(
				'admin:goods/product:addNew'=>'modifiers:add',
				'admin:goods/product:edit'=>'modifiers:edit',
				'shop:product:index'=>'modifiers:product_index'
			);
		}

		function listener()
		{
			return array(
				'trading/goods:save'=>'listener:goodsSave',
				'trading/order:create'=>'listener:orderCreate'
			);
		}
	}

?>